package com.shujia.duotai_work.exer1;

public class Coffee extends Drink {
    private String dosing;

    public Coffee(int size, String dosing) {
        super("咖啡", size);
        this.dosing = dosing;
    }

    @Override
    public void show() {
        System.out.println("名称:" + name);
        System.out.println("配料:" + dosing);
        System.out.println("容量:" + size);
    }
}
